package com.qf.cloud2203.service1.feign;

import com.qf.cloud2203.domain.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("VOTE")
public interface VoteClient {

    @PostMapping("/vote/dovote")
    public ResultVo dovote(@RequestParam("phone") String phone,@RequestParam("cadidateId")  Integer cadidateId,@RequestHeader("token") String token) throws Exception;
}
